import { request } from '@/api/request'

export const login = (data) => {
  return request.post('/auth/login', data)
}

export const register = (data) => {
  return request.post('/auth/register', data)
}

export const loginStatus = () => {
  return request.post('/auth/loginStatus', {
    token: localStorage.getItem('token'),
  })
}
